<div class="panel panel-default" ng-controller="BusCityListCtrl">
	<div class="panel-heading">
		跨城巴士 / 城市管理
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="名称">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.province" class="form-control" placeholder="省">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:100px;">编号</th>
					<th style="width:100px;">城市名首字母</th>
					<th style="width:100px;">名称</th>
					<th style="width:100px;">省</th>
					<th style="width:100px;">
						<div class="list-icon">
							<a href tooltip="添加城市"  has-authority="BUS_CITY_ADD">
								<i class="fa fa-plus" ng-click="write('lg',null,'insert')"></i>
							</a>
							<a href tooltip="热门城市设置" has-authority="BUS_CITY_POPULAR">
								<i class="fa fa-edit" ng-click="populars('lg','popular')"></i>
							</a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="city in dataList">
					<td></td>
					<td>{{city.code}}</td>
					<td>{{city.initial}}</td>
					<td>{{city.name}}</td>
					<td>{{city.province}}</td>
					<td>
						<div class="list-icon">
							<a href tooltip="修改城市" has-authority="BUS_CITY_UPDATE">
								<i class="fa fa-pencil" ng-click="write('lg',city,'update')"></i>
							</a>
							<a href tooltip="删除城市"  has-authority="BUS_CITY_DEL">
								<i class="fa fa-times" ng-click="del('sm',city ,'delete')"></i>
							</a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="6" style="text-align: center;">暂无城市信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>